package com.hbxs.folder.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 接口返回分页数据类
 * @param <T>
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("接口返回分页列表类")
public class ResultTList<T> {

    @ApiModelProperty(value="分页信息")
    private PageBean page;
    @ApiModelProperty(value="列表数据")
    private List<T> list;

    public static ResultTList generate(PageBean page,List list){
        return new ResultTList(page,list);
    }
}
